package com.kun.lagou.user.dao;

import com.kun.lagou.user.model.User;
import org.springframework.data.repository.CrudRepository;

import java.util.Optional;

/**
 * @author Administrator
 */
public interface UserDao extends CrudRepository<User, Long> {
    Optional<User> findByPhoneNumber(String phoneNumber);
}
